from muffin import Application
app = Application(static_url_prefix='/assets', static_folders=['static'])

@app.route('/hi/{name}')
async def hello(request):
    name = request.path_params.get('name', 'world')
    return {
        'admin': name.title()
    }